import useRequest from "@/api/useRequest";
export class chatMessageApi {

    static listMessage(roomId: number | string): Promise<any> {
        return useRequest({
            url: `/chat_message/message/list/${roomId}`,
            method: "post"
        })
    }

    static getChatState(): Promise<any> {
        return useRequest({
            url: "/chat_message/message/state",
            method: "post"
        })
    }
}